//index.js
//获取应用实例
const app = getApp()

Page({
  data: {

    userInfo: {},
    hasUserInfo: false,
    canIUse: wx.canIUse('button.open-type.getUserInfo'),
  },

  onLoad: function () {
    this.setData({
      userInfo: app.globalData.userInfo
    })
    if (app.globalData.userInfo == null) {
      app.showMsg("用户数据加载中");
      var that = this;
      setInterval(function () {
        that.setData({
          userInfo: app.globalData.userInfo
        })
      }, 4000)
    }
  
  },
  jumpMyCollected:function(){
    wx.navigateTo({
      url: 'userCollect',
    })
  },
  showInfo: function () {
    wx.showModal({
      title: '联系方式',
      content: '324596966@qq.com',
    })
  }


})
